package com.test.service.impl;

import com.test.mapper.SingleQuestionMapper;
import com.test.model.pojo.SingleQuestion;
import com.test.service.SingleQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SingleQuestionServiceImpl implements SingleQuestionService {

    @Autowired
    SingleQuestionMapper singleQuestionMapper;

    @Override
    public SingleQuestion getQuestionById(Integer id) {
        return singleQuestionMapper.getQuestionById(id);
    }

    @Override
    public Integer getCounts() {
        return singleQuestionMapper.getCounts();
    }
}
